<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
<title><?php echo C('WEB_SITE_TITLE');?></title>
<link href="/M/Public/static/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="/M/Public/static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="/M/Public/static/bootstrap/css/docs.css" rel="stylesheet">
<link href="/M/Public/static/bootstrap/css/onethink.css" rel="stylesheet">
<link href="/M/Public/static/bootstrap/css/common.css" rel="stylesheet">

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="/M/Public/static/bootstrap/js/html5shiv.js"></script>
<![endif]-->

<!--[if lt IE 9]>
<script type="text/javascript" src="/M/Public/static/jquery-1.10.2.min.js"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script type="text/javascript" src="/M/Public/static/jquery-1.8.2.js"></script>
<!-- styles needed by jScrollPane -->
<link type="text/css" href="/M/Public/static/scroll/jquery.jscrollpane.css" rel="stylesheet" />

<!-- the mousewheel plugin - optional to provide mousewheel support -->
<script type="text/javascript" src="/M/Public/static/scroll/jquery.mousewheel.js"></script>

<!-- the jScrollPane script -->
<script type="text/javascript" src="/M/Public/static/scroll/jquery.jscrollpane.min.js"></script>
<script type="text/javascript" src="/M/Public/static/bootstrap/js/bootstrap.min.js"></script>
<script src="/M/Public/static/jquery.contextmenu.r2.js" type="text/javascript"></script>
<script src="/M/Public/static/artdialog/artDialog.js" type="text/javascript"></script>
<script src="/M/Public/static/jquery.contextmenu.r2.js" type="text/javascript"></script>
<script type="text/javascript" src="/M/Public/static/bootstrap/js/common.js"></script>
<script src="/M/Public/static/artdialog/iframeTools.source.js" type="text/javascript"></script>
<link href="/M/Public/static/artdialog/skins/default.css" rel="stylesheet">
<?php if(is_login()): ?><script src="http://192.168.1.42:3000/socket.io/socket.io.js"></script>
<script src='http://192.168.1.42:3000/javascripts/common.js'></script>
<script>
	$(function(){
		socket.send('<?php echo get_username();?>');
	})
</script>
<?php else: endif; ?>
<!--<![endif]-->
<!-- 页面header钩子，一般用于加载插件CSS文件和代码 -->
<?php echo hook('pageHeader');?>

</head>
<body>
	<!-- 头部 -->
	<!-- 导航条
================================================== -->

<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="brand" href="<?php echo U('index/index');?>">OA-让工作更加简单</a>
            <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <div class="nav-collapse collapse">
                <ul class="nav">
                    <?php $__NAV__ = D('Channel')->lists(); if(is_array($__NAV__)): $i = 0; $__LIST__ = $__NAV__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i;?><li>
                            <a href="<?php echo (get_nav_url($nav["url"])); ?>"><?php echo ($nav["title"]); ?></a>
                        </li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
            <div class="nav-collapse collapse pull-right">
                <?php if(is_login()): ?><ul class="nav" style="margin-right:0">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="padding-left:0;padding-right:0"><?php echo get_username();?> <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="<?php echo U('User/profile');?>">修改密码</a></li>
                                <li><a href="<?php echo U('User/logout');?>">退出</a></li>
                            </ul>
                        </li>
                    </ul>
                <?php else: ?>
                    <ul class="nav" style="margin-right:0">
                        <li>
                            <!-- <a href="<?php echo U('User/login');?>">登录</a> -->
							<a href="javascript:windowLogin('/M/index.php?s=/Home/user/login');">登录</a>
                        </li>
                        <li>
                            <a href="<?php echo U('User/register');?>" style="padding-left:0;padding-right:0">注册</a>
                        </li>
                        <li>
							<a href="javascript:;" class="glyphicon glyphicon-envelope mail" style="font-size:18px;" data-html=true data-content="<span class='label label-info'>admin</span><span class='label label-info'>minglei1202</span>" data-placement="bottom" data-toggle="popover" data-original-title="未读邮件"></a>
                        </li>
                    </ul><?php endif; ?>
            </div>
        </div>
    </div>
</div>

	<!-- /头部 -->
	
	<!-- 主体 -->
	
<header class="jumbotron subhead hide" id="overview">
  <div class="container">
    <h2>用户注册</h2>
    <p><span><span class="pull-left"><span>已经有账号? <a href="<?php echo U('User/login');?>">点此登录</a> </span> </span></p>
  </div>
</header>

<div id="main-container" class_bak="container" class="desktop">
    

<section style="position:relative">
	<div class="span4" style="float:none;margin:auto">
        <form class="login-form" action="/M/index.php?s=/home/user/register.html" method="post">
          <div class="control-group">
            <label class="control-label" for="inputEmail">用户名</label>
            <div class="controls">
              <input type="text" id="inputEmail" class="span4" placeholder="请输入用户名"  ajaxurl="/member/checkUserNameUnique.html" errormsg="请填写1-16位用户名" nullmsg="请填写用户名" datatype="*1-16" value="" name="username">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="inputPassword">密码</label>
            <div class="controls">
              <input type="password" id="inputPassword"  class="span4" placeholder="请输入密码"  errormsg="密码为6-20位" nullmsg="请填写密码" datatype="*6-20" name="password">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="inputPassword">确认密码</label>
            <div class="controls">
              <input type="password" id="inputPassword" class="span4" placeholder="请再次输入密码" recheck="password" errormsg="您两次输入的密码不一致" nullmsg="请填确认密码" datatype="*" name="repassword">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="inputEmail">邮箱</label>
            <div class="controls">
              <input type="text" id="inputEmail" class="span4" placeholder="请输入电子邮件"  ajaxurl="/member/checkUserEmailUnique.html" errormsg="请填写正确格式的邮箱" nullmsg="请填写邮箱" datatype="e" value="" name="email">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="inputPassword">验证码</label>
            <div class="controls">
              <input type="text" id="inputPassword" class="span4" placeholder="请输入验证码"  errormsg="请填写5位验证码" nullmsg="请填写验证码" datatype="*5-5" name="verify">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <img class="verifyimg reloadverify" alt="点击切换" src="<?php echo U('verify');?>" style="cursor:pointer;">
            </div>
            <div class="controls Validform_checktip text-warning"></div>
          </div>
          <div class="control-group">
            <div class="controls">
              <button type="submit" class="btn btn-inverse" style="width:100%">注 册</button>
            </div>
          </div>
        </form>
	</div>
	<div class="container span4" style="position:absolute;right:0;top:0">
		<h2>用户注册</h2>
		<p><span><span class="pull-left"><span>已经有账号? <a href="<?php echo U('User/login');?>">点此登录</a> </span> </span></p>
	</div>
</section>


</div>
<script type="text/javascript">
    $(function(){
        $(window).resize(function(){
            $("#main-container").css("min-height", $(window).height() - 343);
        }).resize();
    })
</script>
	<!-- /主体 -->
</body>
</html>